/*
 * Copyright (c) 2022  by Junzhao
 * THIS FILE IS PART OF JAVASE Song Huongkang PROJECT
 * All Rights Reserved.
 */

package 编译时;

import org.junit.Test;

import java.io.File;
import java.io.FileInputStream;

/**
 * @description 编译时异常
 * @author 俊昭
 * @date 2022/4/10
*/
public class CheckedExceptionTest {
    //
    @Test
    public void test01(){
//        File file = new File("Hello.txt");
//        FileInputStream fis =new FileInputStream(file);// FileNotFoundException
//
//        int data = fis.read();// IOException
//        while (data!=-1){
//            System.out.println((char) data);
//            data= fis.read();// IOException
//        }
//
//        fis.close();// IOException
    }
}
